 package com.oanda.blackberry.restapi;
 
 import net.rim.device.api.util.Persistable;
 
 public class Quote
   implements Persistable
 {
   String symbol;
   long time;
   double bid;
   double ask;
   boolean buy = false;
 
   public Quote(String symbol, long time, double bid, double ask)
   {
     this.symbol = symbol;
     this.time = time;
     this.bid = bid;
     this.ask = ask;
   }
 
   public long getTime() {
     return this.time;
   }
 
   public double getAsk() {
     return this.ask;
   }
 
   public double getBid() {
     return this.bid;
   }
 
   public String getSymbol() {
     return this.symbol;
   }
 
   public boolean isBuy() {
     return this.buy;
   }
 
   public void setBuy(boolean buy) {
     this.buy = buy;
   }
 
   public String toString() {
     return getSymbol();
   }
}

